from django.db import models
from django.contrib.auth.models import User

class webpage(models.Model):
    def __unicode__(self):
        return self.title

    title = models.CharField(max_length=255)
    intro = models.CharField(max_length=255)
    link = models.CharField(max_length=255)
    text = models.TextField()
    keyword = models.CharField(max_length=255, default='')
    dow_time = models.CharField(max_length=20, default='')
    website = models.CharField(max_length=255, default='')
    hash_value = models.BigIntegerField(default=0)

class Website(models.Model):
    def __unicode__(self):
        return self.start_url

    start_url = models.CharField(max_length=255, default='')
    allowed_domain = models.CharField(max_length=255, default='')
    
    
class lda_topics(models.Model):
    topic_no = models.IntegerField(default=0)
    words = models.CharField(max_length=255)

